cmake_minimum_required(VERSION 3.16)

# Version of the project
# Generic version of not only the library. Major version is reserved for really big changes of the project,
# minor version changes with added functionality (new tool, functionality of the tool or library, ...) and
# micro version is changed with a set of small changes or bugfixes anywhere in the project.
set(CLOG_MAJOR_VERSION 0)
set(CLOG_MINOR_VERSION 0)
set(CLOG_MICRO_VERSION 1)
set(CLOG_VERSION ${CLOG_MAJOR_VERSION}.${CLOG_MINOR_VERSION}.${CLOG_MICRO_VERSION})

# Version of the library
# Major version is changed with every backward non-compatible API/ABI change, minor version changes
# with backward compatible change and micro version is connected with any internal change of the library.
set(CLOG_MAJOR_SOVERSION 0)
set(CLOG_MINOR_SOVERSION 0)
set(CLOG_MICRO_SOVERSION 1)
set(CLOG_SOVERSION_FULL ${CLOG_MAJOR_SOVERSION}.${CLOG_MINOR_SOVERSION}.${CLOG_MICRO_SOVERSION})
set(CLOG_SOVERSION ${CLOG_MAJOR_SOVERSION})

set(CMAKE_BUILD_TYPE DEBUG)

# include custom Modules
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/CMakeModules/")


project(CLOG_TEST VERSION ${CLOG_VERSION})


find_package(LibCLOG  REQUIRED)
message(STATUS " xxxx ${CLOG_LIBRARIES} ${CLOG_INCLUDE_DIRS}")


include_directories(${CLOG_INCLUDE_DIRS})

add_executable(clog_test test.c )
target_link_libraries(clog_test ${CLOG_LIBRARIES})


SET(EXECUTABLE_OUTPUT_PATH ${PROJECT_BINARY_DIR}) 


